<%-- 
    Document   : prueba
    Created on : 07-jul-2010, 9:08:15
    Author     : alann
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <!--JQUERY & Pluging-->
        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="js/jquery.transform.js"></script>
        <script>
            $(document).ready(function() {
                $("#btnConsultar").click(consultar);
            });
            function consultar() {
               $("#resultado").transform({
                    xml:{
                        url:"area_consultar.reclamo",
                        data:{
                            txtNombre:$("#txtNombre").val()
                        },
                        dataType:"xml"
                    },
                    xsl:"xml/areas.xsl"
                });
            }

        </script>
        
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <form id="form1" name="form1" method="post" action="">
            Nombre:<input name="txtNombre" type="text" id="txtNombre" size="50"  />
            <input type="button" name="btnConsultar" id="btnConsultar" value="Consultar" />
        </form>

          <div id="resultado">
          </div>
    </body>
</html>
